//
//  JSViewUtil.m
//  DaoZiJinFu
//
//  Created by dzjf on 2017/4/12.
//  Copyright © 2017年 dzjf. All rights reserved.
//

#import "JSViewUtil.h"


@implementation JSViewUtil

+ (UIView *)setSecutyView {
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 20)];
    UILabel *label = [[UILabel alloc] init];
    [view addSubview:label];
    label.text = @"账户资金交易安全由银行和保险公司共同保障";
    label.font = [UIFont systemFontOfSize:13];
    label.textColor = GRAYCOLOR;
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(view).with.offset(15);
        make.centerY.equalTo(view);
        make.height.mas_equalTo(20);
    }];
    UIImageView *imageView = [[UIImageView alloc] init];
    [view addSubview:imageView];
    imageView.image = IMAGE(@"finace_secuty");
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(label).with.offset(-15);
        make.centerY.equalTo(view);
        make.height.mas_equalTo(15);
        make.width.mas_equalTo(15);
    }];
    return view;
}



@end
